__author__='xu'
import urllib,urllib3,requests
header={
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 OPR/75.0.3969.171'
}
def login():
    req=urllib.request("https://exservice.12306.cn/excater/login/checkLogin")
    req.headers
    html=urllib.urlopen(req).read()
    print(html);


login()